$(document).ready(function() {	
	if((typeof doInit)=="function"){
		doInit();
	}
});


var plat={};
plat=function(){
	return{
		/*
		 * 命名空间的定义，抄袭EXTJS
		 */
		ns:function(){ 
			var a=arguments, o=null, i, j, d, rt; 
			for (i=0; i<a.length; ++i) { 
				    d=a[i].split("."); 
				    rt = d[0]; 
				    eval('if (typeof ' + rt +'== "undefined"){' + rt + ' = {};} o = ' + rt + ';'); 
				    for (j=1; j<d.length; ++j) { 
				         o[d[j]]=o[d[j]] || {}; 
				         o=o[d[j]]; 
				    } 
				} 
			},
		fullUrl:function(url){
				return plat.Data.getContextPath()+url;
			},
	}	
}();
